const RouteWatcher = '@/components/PageTab/RouteWatcher';



export default[
  {
    path: '/',
    component: '../layouts/BlankLayout',
    routes: [
      {
        path: '/user',
        component: '../layouts/UserLayout',
        routes: [
          {
            path: '/user',
            redirect: '/user/login',
          },
          {
            path: '/user/login',
            component: './user/login',
          },
        ],
      },
      {
        path: '/screen',
        component: './screen',
      },
      {
        path: '/',
        component: '../layouts/BasicLayout',
        Routes: ['src/pages/Authorized'],
        authority: ['admin', 'user'],
        routes: [
          {
            path: '/overview',
            name: '项目总览',
            icon: 'icon-icon-log',
            component: './overview',
            wrappers: [RouteWatcher],
          
          },
           {
            path: '/monitoring',
            icon: 'table',
            name: '实时监控',
            routes: [
              {
                path: '/monitoring/details',
                name: '实时数据',
                hideInMenu:true,
                component: './monitoring/details',
                wrappers: [RouteWatcher],
              },
            
              {
                name: '设备类名A',
                path: '/monitoring/deviceNameA',
                component: './monitoring/deviceNameA',
              
                wrappers: [RouteWatcher],
              },
             
              {
                name: '设备类名B',
                path: '/monitoring/deviceNameB',
                component: './monitoring/deviceNameB',
                wrappers: [RouteWatcher],
              },
              {
                name: '设备类名C',
                path: '/monitoring/deviceNameC',
                component: './monitoring/deviceNameC',
                wrappers: [RouteWatcher],
              }, {
                path: '/monitoring/realtime',
                name: '实时数据',
                
                component: './monitoring/realtime',
                wrappers: [RouteWatcher],
              },
            ],
          },
          // {
          //   path: '/monitoring/realtime',
          //   name: '实时数据',
          //   icon: 'table',
          //   component: './monitoring/realtime',
          //   wrappers: [RouteWatcher],
          // },
          {
            path: '/alarmManagement',
            icon: 'table',
            name: '报警管理',
            routes: [
           
              {
                name: '实时报警',
                path: '/alarmManagement/realTime',
                component: './alarmManagement/realTime',
                wrappers: [RouteWatcher],
              }, {
                path: '/alarmManagement/history',
                name: '历史报警',
                component: './alarmManagement/history',
                wrappers: [RouteWatcher],
              },
              {
                name: '报警总览',
                path: '/alarmManagement/overview',
                component: './alarmManagement/overview',
                wrappers: [RouteWatcher],
              }, {
                name: '报警设置',
                path: '/alarmManagement/settings',
                component: './alarmManagement/settings',
                wrappers: [RouteWatcher],
              }
            ],
          },
 
          {
            path: '/deviceManagement',
            icon: 'table',
            name: '设备管理',
            routes: [
            
              {
                name: '设备定义',
                path: '/deviceManagement/definition',
                component: './deviceManagement/definition',
                wrappers: [RouteWatcher],
              }, {
                path: '/deviceManagement/list',
                name: '设备列表',
                component: './deviceManagement/list',
                wrappers: [RouteWatcher],
              }
            ],
          }, 
          



          {
            path: '/energyAnalysis',
            icon: 'table',
            name: '能耗分析',
            routes: [
              {
                path: '/energyAnalysis/survey',
                name: '能耗概况',
                component: './energyAnalysis/survey',
                wrappers: [RouteWatcher],
              },
              {
                name: '同比分析',
                path: '/energyAnalysis/sameAnalysis',
                component: './energyAnalysis/sameAnalysis',
                wrappers: [RouteWatcher],
              },
              {
                path: '/energyAnalysis/chainAnalysis',
                name: '环比分析',
                component: './energyAnalysis/chainAnalysis',
                wrappers: [RouteWatcher],
              },
              {
                name: '能耗报表',
                path: '/energyAnalysis/report',
                component: './energyAnalysis/report',
                wrappers: [RouteWatcher],
              },
              {
                name: '复费率报表',
                path: '/energyAnalysis/multipleRateReport',
                component: './energyAnalysis/multipleRateReport',
                wrappers: [RouteWatcher],
              },
              {
                name: '电能报表',
                path: '/energyAnalysis/electricEnergyReport',
                component: './energyAnalysis/electricEnergyReport',
                wrappers: [RouteWatcher],
              }
              
            ],
          },
         
          {
            path: '/monitoringAnalysis',
            icon: 'table',
            name: '监测分析',
            routes: [
              {
                path: '/monitoringAnalysis/harmonicMonitoring',
                name: '谐波监测',
                component: './monitoringAnalysis/harmonicMonitoring',
                wrappers: [RouteWatcher],
              },
              {
                name: '三相不平衡度',
              
                path: '/monitoringAnalysis/threePhaseUnbalance',
                component: './monitoringAnalysis/threePhaseUnbalance',
                wrappers: [RouteWatcher],
              }, {
                path: '/monitoringAnalysis/maximumReport',
                name: '最大需量报表',
                component: './monitoringAnalysis/maximumReport',
                wrappers: [RouteWatcher],
              },
              {
                name: '需量监测',
                path: '/monitoringAnalysis/monitoring',
                component: './monitoringAnalysis/monitoring',
                wrappers: [RouteWatcher],
              }
            ],
          },
          {
            path: '/reportAnalysis',
            icon: 'table',
            name: '分析报告',
            routes: [
           
              {
                name: '用户报告',
                path: '/reportAnalysis/user',
                component: './reportAnalysis/user',
                wrappers: [RouteWatcher],
              }, {
                path: '/reportAnalysis/powerConsumption',
                name: '用电报告',
                component: './reportAnalysis/powerConsumption',
                wrappers: [RouteWatcher],
              },
              {
                name: '报告文件',
                path: '/reportAnalysis/reportDocument',
                component: './reportAnalysis/reportDocument',
                wrappers: [RouteWatcher],
              }
            ],
          },
          
         
          
          {
            path: '/mochaITOM',
            icon: 'table',
            name: '运维管理',
            routes: [
            
              {
                name: '巡检记录',
                path: '/mochaITOM/patrolRecord',
                component: './mochaITOM/patrolRecord',
                wrappers: [RouteWatcher],
              }, {
                path: '/mochaITOM/defectRecord',
                name: '缺陷记录',
                component: './mochaITOM/defectRecord',
                wrappers: [RouteWatcher],
              },
              {
                name: '培训记录',
                path: '/mochaITOM/trainingRecords',
                component: './mochaITOM/trainingRecords',
                wrappers: [RouteWatcher],
              }
            ],
          },   {
            path: '/linkageManagement',
            icon: 'table',
            name: '联动管理',
            routes: [
            
              {
                name: '联动条件',
                path: '/linkageManagement/conditions',
                component: './linkageManagement/conditions',
                wrappers: [RouteWatcher],
              }, {
                path: '/linkageManagement/result',
                name: '联动结果',
                component: './linkageManagement/result',
                wrappers: [RouteWatcher],
              },
              {
                name: '联动配置',
                path: '/linkageManagement/configure',
                component: './linkageManagement/configure',
                wrappers: [RouteWatcher],
              }
            ],
          }, 
          
          {
           // path: '/drawingManagement',
            icon: 'table',
            name: '图纸管理',
            // routes: [
           
            //   {
            //     name: '配电图',
                path: '/drawingManagement/distributionDiagram',
                component: './drawingManagement/distributionDiagram',
                wrappers: [RouteWatcher],
            //   },
            // ],
          },

     
          {
            path: '/authorityManagement',
            icon: 'table',
            name: '系统管理',
            routes: [
              {
                path: '/authorityManagement/department',
                name: '部门管理',
                wrappers: [RouteWatcher],
                routes: [
                  {
                    path: '/authorityManagement/department/configure',
                    name: '部门配置',
                    component: './authorityManagement/department/configure',
                    wrappers: [RouteWatcher],
                  }, {
                    path: '/authorityManagement/department/info',
                    name: '部门页面',
                    component: './authorityManagement/department/info',
                    wrappers: [RouteWatcher],
                  }, {
                    path: '/authorityManagement/department/equipment',
                    name: '部门设备',
                    component: './authorityManagement/department/equipment',
                    wrappers: [RouteWatcher],
                  }]
              },
              {
                name: '用户配置',
                
                path: '/authorityManagement/personnel',
              
                wrappers: [RouteWatcher], routes: [
                  {
                    path: '/authorityManagement/personnel/edit',
                    name: '用户编辑',
                    component: './authorityManagement/personnel/edit',
                    wrappers: [RouteWatcher],
                  }, {
                    path: '/authorityManagement/personnel/jurisdiction',
                    name: '权限管理',
                    component: './authorityManagement/personnel/jurisdiction',
                    wrappers: [RouteWatcher],
                  }]
              }, 
              // {
              //   path: '/authorityManagement/role',
              //   name: '角色管理',
              //   icon: 'smile',
              //   component: './authorityManagement/role',
              //   wrappers: [RouteWatcher],
              // },
              {
                name: '模块管理',
                icon: 'smile',
                path: '/authorityManagement/modules',
                component: './authorityManagement/modules',
                wrappers: [RouteWatcher],
              },  
              {
                name: '系统日志',
               
                path: '/authorityManagement/log',
                component: './authorityManagement/log',
                wrappers: [RouteWatcher],
              }
            ],
          },
          {
            path: '/',
            redirect: '/overview',
          },
          {
            component: '404',
          },
        ],
      },
    ],
  },
]